package com.woniu.entity.impl;

import com.woniu.entity.Person;

/**
 * @author:陈涵
 * @Do:
 * @date: 2022/8/20 12:50
 */
public class Wife implements Person {
    private String name;
    private String sex;





    public void setName(String name) {
        this.name = name;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Wife() {
    }

    public Wife(String name) {
        this.name = name;
    }

    public Wife(String name, String sex) {
        this.name = name;
        this.sex = sex;
    }



    @Override
    public void eat() {
        System.out.println("老婆");
    }


    @Override
    public String toString() {
        return "Wife{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                '}';
    }

}
